#ifndef FILE_FAAC_H
#define FILE_FAAC_H
#include<stdio.h>
#include<stdint.h>
typedef struct _ADSTHEADINFO{
uint8_t  is_mp2;
uint8_t  profile;
uint8_t  sr_idx;
uint8_t  nb_ch;
uint16_t frame_size;
}ADSTHEADINFO;
typedef struct _FILE_FAAC{
FILE* fp;
ADSTHEADINFO frameinfo;	
}FILE_FAAC;
//读取信息
//0正常 -1 错误
int FAACGetAudioSpecificConfig(const char*filename,FILE_FAAC*fileinfo);
//获取下一帧长度并定位到数据开始位置
uint32_t FAACGetNextFrameSize(FILE_FAAC*fileinfo);
//读取数据
void FAACGetFrameBuff(FILE_FAAC*fileinfo,uint8_t*buff,uint32_t buffsize);
uint32_t FAACGetSampleRatesByIndex(int nIndex);
#endif